package com.nova.edc.service.system;

import java.util.List;

import com.nova.edc.model.system.DeviceAir;
import com.nova.frame.dao.pager.Page;
import com.nova.frame.dao.pager.PageList;

public interface DeviceAirService {

	public List<DeviceAir> findAll();

	public List<DeviceAir> findByExample(DeviceAir deviceAir);

	public PageList<DeviceAir> findPageDeviceAir(DeviceAir deviceAir,
			Page page, String sord, String sidx);

	public DeviceAir getById(Integer id);

	public DeviceAir getByCode(String aircode);

	public DeviceAir insert(DeviceAir deviceAir);

	public int update(DeviceAir deviceAir);

	public int deleteById(Integer id);

	// 验证空调code是否已经存在，如果是true说明已存在，如果是false则说明不存在
	public boolean isExistCode(String airCode);

	public List<String> findCodeByList(List<DeviceAir> deviceAirs);
}
